package com.ssy.lingxi.product.repository.price;

import com.ssy.lingxi.product.entity.Goods;
import com.ssy.lingxi.product.entity.price.GoodsPrice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * 货品价格持久化层
 * @author lxc
 * @version 2.0.0
 * @date 2022/3/25
 */
public interface GoodsPriceRepository extends JpaRepository<GoodsPrice,Long>, JpaSpecificationExecutor<GoodsPrice> {

    GoodsPrice findByGoods(Goods goods);

    List<GoodsPrice> findByGoodsIn(List<Goods> goods);
}
